<#include "header.htm"/>

<div id="tabs">
			<ul>
				<li><a href="${JForumContext.encodeURL("/admBase/login")}"><span>${I18n.getMessage("Admin.general")}</span></a></li>
	
			
				<li><a href="${contextPath}/adminGroups/list${extension}"><span>${I18n.getMessage("Admin.groups")}</span></a></li>
				<li id="activetab"><a href="${contextPath}/adminUsers/list${extension}"><span>${I18n.getMessage("Admin.users")}</span></a></li>
				<li><a href="${contextPath}/adminCategories/list${extension}"><span>${I18n.getMessage("Admin.categories")}</span></a></li>				
				<li><a href="${contextPath}/adminForums/list${extension}"><span>${I18n.getMessage("Admin.forums")}</span></a></li>
				<li><a href="${contextPath}/adminModeration/list${extension}"><span>${I18n.getMessage("Admin.approving")}</span></a></li>
			
				<li><a href="${contextPath}/adminRankings/list${extension}"><span>${I18n.getMessage("Admin.rankings")}</span></a></li>				
				<li><a href="${contextPath}/adminBanning/list${extension}"><span>${I18n.getMessage("Admin.banning")}</span></a></li>
				
				
				
				
				<li><a href="${contextPath}/adminConfig/list${extension}"><span>${I18n.getMessage("Admin.configurations")}</span></a></li>
			
				<li><a href="${contextPath}/adminSmilies/list${extension}"><span>${I18n.getMessage("Admin.smilies")}</span></a></li>
			
				<li><a href="${contextPath}/adminSearchStats/list${extension}"><span>${I18n.getMessage("Admin.search")}</span></a></li>
			
				<li><a href="${contextPath}/adminAttachments/configurations${extension}"><span>${I18n.getMessage("Admin.attachments")}</span></a></li>
			
				<li><a href="${contextPath}/adminCache/list${extension}"><span>${I18n.getMessage("Admin.cache")}</span></a></li>
			
			</ul>


</div>

<div id="acp">
		<div class="panel">
			<span class="corners-top"><span></span></span>
				<div id="content">
				<div id="toggle">
						<a id="toggle-handle" accesskey="m" title="Hide or display the side menu" onclick="switch_menu(); return false;" href="#"></a>
				</div>
				<div id="menu">
						
						<ul>
						
							<li class="header">${I18n.getMessage("Admin.users")}</li>
							
								<li id="activemenu"><a href="${contextPath}/adminUsers/list${extension}"><span>${I18n.getMessage("Admin.manage.users")}</span></a></li>
								
								<li><a href="${contextPath}/adminUsers/pendingActivations${extension}"><span>${I18n.getMessage("Admin.inactive.users")}</span></a></li>
								
								
						</ul>
					</div>
				    <div id="main">
				
				


<#setting number_format = "#"/>
<#import "../../macros/pagination.ftl" as pagination/>
<#import "macros/group_macros.ftl" as lib>

<h2>${I18n.getMessage("User.adminTitle")}</h2>

<fieldset class="submit-buttons">
		<form id="formusersearch" action="${JForumContext.encodeURL("/jforum")}" accept-charset="${encoding}" method="post">
			${I18n.getMessage("User.searchByUsername")}: 
			<input type="hidden" name="action" value="search" />
			<input type="hidden" name="module" value="${moduleName}" />

			<input type="text" name="username" value="${search?default("")}" />&nbsp;
			${I18n.getMessage("User.searchByGroup")}: 
			<@lib.selectFieldGroups "group_id", groups, 0, false, selectedList/>

			<input type="submit" value="${I18n.getMessage("ForumBase.search")}" class="button2"/>
		</form>
</fieldset>

<form accept-charset="${encoding}" name="form" action="${JForumContext.encodeURL("/jforum")}" method="post">
	<input type="hidden" name="action" value="delete" />
	<input type="hidden" name="module" value="${moduleName}" />
	<input type="hidden" name="start" value="${start}" />
<table cellspacing="1">
	<thead>
	<tr>
		<th style="text-align: center;">${I18n.getMessage("User.id")}</th>
		<th style="text-align: center;">${I18n.getMessage("User.username")}</th>
		<th style="text-align: center;">&nbsp;</th>
		<th style="text-align: center;">&nbsp;</th>
		<th style="text-align: center;">${I18n.getMessage("Lock")}</th>
		<th style="text-align: center;">${I18n.getMessage("Unlock")}</th>
	</tr>
	
	
	</thead>
	<tbody>


	<#list users as user>
		<tr>
			<td style="text-align: center;"><strong>${user.id}</strong></td>
			<td><strong>${user.username}</strong></td>
			<td style="text-align: center;"><a href="${contextPath}/jforum${extension}?module=adminUsers&amp;action=edit&amp;id=${user.id}">${I18n.getMessage("Edit")}</a></td>
			<td style="text-align: center;"><a href="${contextPath}/jforum${extension}?module=adminUsers&amp;action=groups&amp;id=${user.id}">${I18n.getMessage("User.Groups")}</a></td>

			<#if user.deleted>
				<td style="text-align: center;">&nbsp;</td>
				<td style="text-align: center;"><input type="checkbox" name="user_id" value="${user.id}" /></td>
			<#else>
				<td style="text-align: center;"><input type="checkbox" name="user_id" value="${user.id}" /></td>
				<td style="text-align: center;">&nbsp;</td>
			</#if>
		</tr>
	</#list>




	</tbody>
</table>


<fieldset class="submit-buttons">
		<input class="button1" type="button" value="${I18n.getMessage("Insert")}" onClick="document.location = '${contextPath}/user/insert${extension}';" >&nbsp;
		<input class="button2" type="submit" value="${I18n.getMessage("Lock")} / ${I18n.getMessage("Unlock")}" name="submit">
</fieldset>
</form>


    <#if thisPage?exists>
	<div class="pagination">
			<@pagination.doPagination searchAction, searchId/>
   	</div>
   	
   	</#if>
   	
</div> 	
</div>
	<span class="corners-bottom"><span></span></span>
</div>
</div>

<#include "bottom.htm"/>
